﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的邀请 - 模切材料小程序</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系统 */
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 64px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 - TDesign 简约风格 */
        .header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: var(--space-4) var(--space-4) var(--space-5);
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .back-btn {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .back-btn:hover {
            opacity: 1;
        }
        
        .page-title {
            font-weight: 500;
            font-size: 16px;
        }
        
        .actions {
            display: flex;
            gap: var(--space-5);
        }
        
        .actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .actions i:hover {
            opacity: 1;
        }
        
        /* 邀请记录 - TDesign 简约风格 */
        .invitations-section {
            background: var(--bg-color-container);
            padding: var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .section-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--space-4);
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: var(--space-2);
            color: var(--primary-color);
            font-size: 14px;
        }
        
        .invitation-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
        }
        
        .invitation-item {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            padding: var(--space-4);
            box-shadow: var(--shadow-1);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
            border: 1px solid var(--border-color-light);
            position: relative;
            overflow: hidden;
        }
        
        .invitation-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: var(--primary-color);
            border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
        }
        
        .invitation-item:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-2);
        }
        
        .invitation-header {
            margin-bottom: var(--space-2);
        }
        
        .invitation-name {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-primary);
        }
        
        .invitation-content {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-3);
            line-height: 1.4;
        }
        
        .invitation-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-placeholder);
            font-size: 11px;
            margin-bottom: var(--space-2);
        }
        
        .invitation-phone {
            display: flex;
            align-items: center;
        }
        
        .invitation-phone i {
            margin-right: var(--space-1);
            color: var(--primary-color);
            font-size: 10px;
        }
        
        .invitation-time {
            color: var(--text-placeholder);
            font-size: 11px;
        }
        
        .invitation-reward {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-2);
            background: var(--bg-color-secondray);
            border-radius: var(--border-radius-small);
            border: 1px solid var(--border-color-light);
        }
        
        .reward-info {
            display: flex;
            align-items: center;
        }
        
        .reward-info i {
            margin-right: var(--space-1);
            color: var(--primary-color);
            font-size: 12px;
        }
        
        .reward-amount {
            font-size: 12px;
            font-weight: 500;
            color: var(--primary-color);
        }
        
        /* 底部导航 - TDesign 简约风格 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            display: flex;
            border-top: 1px solid var(--border-color);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            color: var(--text-placeholder);
            font-size: 10px;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="back-btn" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </div>
                <div class="page-title">我的邀请</div>
                <div class="actions">
                    <i class="fas fa-share" onclick="shareInvite()"></i>
                    <i class="fas fa-gift" onclick="viewRewards()"></i>
                </div>
            </div>
        </div>
        
        <!-- 邀请记录 -->
        <div class="invitations-section">
            <div class="section-title">
                <i class="fas fa-users"></i>
                邀请记录
            </div>
            
            <div class="invitation-list">
                <!-- 邀请记录1 -->
                <div class="invitation-item" onclick="viewInvitationDetail(1)">
                    <div class="invitation-header">
                        <div class="invitation-name">张经理</div>
                    </div>
                    <div class="invitation-content">
                        通过您的邀请链接注册成功，已完成个人认证，您获得100积分奖励
                    </div>
                    <div class="invitation-meta">
                        <div class="invitation-phone">
                            <i class="fas fa-phone"></i>
                            <span>138****5678</span>
                        </div>
                        <div class="invitation-time">2024-01-15 注册</div>
                    </div>
                    <div class="invitation-reward">
                        <div class="reward-info">
                            <i class="fas fa-coins"></i>
                            <span>获得奖励：</span>
                            <span class="reward-amount">100积分</span>
                        </div>
                    </div>
                </div>
                
                <!-- 邀请记录2 -->
                <div class="invitation-item" onclick="viewInvitationDetail(3)">
                    <div class="invitation-header">
                        <div class="invitation-name">王工程师</div>
                    </div>
                    <div class="invitation-content">
                        通过您的邀请链接注册成功，已完成个人认证，您获得100积分奖励
                    </div>
                    <div class="invitation-meta">
                        <div class="invitation-phone">
                            <i class="fas fa-phone"></i>
                            <span>136****9876</span>
                        </div>
                        <div class="invitation-time">2024-01-13 注册</div>
                    </div>
                    <div class="invitation-reward">
                        <div class="reward-info">
                            <i class="fas fa-coins"></i>
                            <span>获得奖励：</span>
                            <span class="reward-amount">100积分</span>
                        </div>
                    </div>
                </div>
                
                <!-- 邀请记录3 -->
                <div class="invitation-item" onclick="viewInvitationDetail(5)">
                    <div class="invitation-header">
                        <div class="invitation-name">刘经理</div>
                    </div>
                    <div class="invitation-content">
                        通过您的邀请链接注册成功，已完成个人认证，您获得100积分奖励
                    </div>
                    <div class="invitation-meta">
                        <div class="invitation-phone">
                            <i class="fas fa-phone"></i>
                            <span>137****8765</span>
                        </div>
                        <div class="invitation-time">2024-01-11 注册</div>
                    </div>
                    <div class="invitation-reward">
                        <div class="reward-info">
                            <i class="fas fa-coins"></i>
                            <span>获得奖励：</span>
                            <span class="reward-amount">100积分</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item" onclick="location.href='home.html'">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item" onclick="location.href='demand-list.html'">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item" onclick="location.href='publish-select.html'">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item" onclick="location.href='my-messages.html'">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item active">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 分享邀请
        function shareInvite() {
            // 跳转到分享页面
            window.location.href = 'invite-share.html';
        }
        
        // 查看奖励
        function viewRewards() {
            alert('正在查看奖励详情...');
        }
        
        // 查看邀请详情
        function viewInvitationDetail(invitationId) {
            alert(`查看邀请详情 ID: ${invitationId}`);
        }
        
        // 邀请记录点击效果
        document.querySelectorAll('.invitation-item').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
    </script>
</body>
</html>